package com.org.manhu.chargehelper.tools;

import android.widget.ImageView;

import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.org.manhu.chargehelper.R;

public class LoadImage {

	public static void LoadPic(String url, ImageView imageView) {
		DisplayImageOptions options = new DisplayImageOptions.Builder()
				.showStubImage(R.drawable.no_pic)
				.showImageForEmptyUri(R.drawable.no_pic)
				.cacheInMemory(true).cacheOnDisc(true).build();
		ImageLoader.getInstance().displayImage(url, imageView, options, null);
	}
	
	public static void LoadBigPic(String url, ImageView imageView) {
		DisplayImageOptions options = new DisplayImageOptions.Builder()
				.showStubImage(R.drawable.big_image_no_pic)
				.showImageForEmptyUri(R.drawable.big_image_no_pic)
				.cacheInMemory(true).cacheOnDisc(true).build();
		ImageLoader.getInstance().displayImage(url, imageView, options, null);
	}

}
